<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>后台首页</title>
		{load href="/static/css/admin.css,/static/js/layer/skin/default/layer.css" /}
	</head>

	<body>
		<div id="tablebar"><span class="right" id="addcashier">+添加管理员</span></div>
		<div id="tablepad">
			<table id="mytable" align="center" border="1px" cellpadding="0" cellspacing="0">
				<tr align="middle">
					<th>收银员编号</th>
					<th>收银员名称</th>
					<th>登录账号</th>
					<th>APP权限</th>
					<th>操作</th>
				</tr>
				<tr align="middle">
					<td>Data</td>
					<td>Data</td>
					<td>Data</td>
					<td>Data</td>
					<td><button class="btn-danger editor">+编辑</button></td>
				</tr>
				<tr align="middle">
					<td>Data</td>
					<td>Data</td>
					<td>Data</td>
					<td>Data</td>
					<td><button class="btn-danger editor">+编辑</button></td>
				</tr>
				<tr align="middle">
					<td>Data</td>
					<td>Data</td>
					<td>Data</td>
					<td>Data</td>
					<td><button class="btn-danger editor">+编辑</button></td>
				</tr>
				<tr align="middle">
					<td>Data</td>
					<td>Data</td>
					<td>Data</td>
					<td>Data</td>
					<td><button class="btn-danger editor">+编辑</button></td>
				</tr>
				<tr align="middle">
					<td>Data</td>
					<td>Data</td>
					<td>Data</td>
					<td>Data</td>
					<td><button class="btn-danger editor">+编辑</button></td>
				</tr>
				<tr align="middle">
					<td>Data</td>
					<td>Data</td>
					<td>Data</td>
					<td>Data</td>
					<td><button class="btn-danger editor">+编辑</button></td>
				</tr>
				<tr align="middle">
					<td>Data</td>
					<td>Data</td>
					<td>Data</td>
					<td>Data</td>
					<td><button class="btn-danger editor">+编辑</button></td>
				</tr>
			</table>
		</div>

		<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
		{load href="/static/js/layer/layer.js" /}
		<script type="text/javascript">
			$("#mytable").on("click", ".editor", function() {
				layer.open({
					type: 2,
					title: '编辑门店',
					shadeClose: true,
					shade: 0.8,
					area: ['560px', '60%'],
					content: 'editmanage.html' //iframe的url
				});
			})
		</script>
	</body>

</html>